<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html" indent="yes"/>
    <xsl:template match="/">
        <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="text()"/>
    <xsl:template name="tag" match="listtag">
        <xsl:for-each select="tag">
            <li class="tag-detail-item">
                <xsl:attribute name="id">
                    <xsl:text>tag-item-</xsl:text><xsl:value-of select="tagindex"/>
                </xsl:attribute>
                <a href="{tagstoreurl}">
                    <div class="action-wrapper">
                        <div class="store-button">GO STORE</div>
                    </div>
                    <div class="tag-preview">
                        <img src="{tagimage}"/>
                    </div>
                    <div class="tag-info">
                        <div class="product-name">
                            <xsl:value-of select="tagname"/>
                        </div>
                        <div class="brand-name">
                            <xsl:value-of select="tagbrand"/>
                        </div>
                    </div>
                </a>
            </li>
        </xsl:for-each>
    </xsl:template>
</xsl:stylesheet>